<?php

namespace app\index\model;
use think\Model;
class IntergralLog extends Model
{
    protected $name = 'car_integrallog';
    protected $autoWriteTimestamp = true;
    protected $dateFormat = 'Y/m/d H:i:s';
    protected $createTime = 'create_at';

    public function photoInfo() {
        return $this->hasOne(PhotoList::class, 'id', 'about_id')->field('id,name');
    }
}